import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { CommonModule } from '@angular/common';

import { WorkflowComponent } from './workflow/workflow.component';
import { LoginComponent } from './login/login.component';
import { DashboardComponent } from './dashboard/dashboard.component'

const routes: Routes = [
	{path: '', redirectTo: '/login', pathMatch: 'full' },
  	//{path: '**',component: LoginComponent},
  	{path:'login',component:LoginComponent},
  	{path: 'workflow', component: WorkflowComponent },
  	{path:'dashboard',component:DashboardComponent }
  	];

@NgModule({
  imports: [RouterModule.forRoot(routes)],
  exports: [RouterModule]
})
export class AppRoutingModule { }
